<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"  
    xmlns:p="http://primefaces.org/ui"> 
	<h:head>
	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	    <link href="${facesContext.externalContext.requestContextPath}/css/format.css" rel="stylesheet" type="text/css"/>
	    <title>System Ogłoszeniowy</title>
	</h:head>
	<h:body>
	     <ui:composition template="/template.xhtml">
	        <ui:define name="ui_right">
	       	<h:form id="form">
	       		<p:panel header="#{msgs['index.news']}">　
				    <p:growl id="msgs" showDetail="true" />  
				  
				    <p:dataTable id="ogloszenia" var="ogloszenie" value="#{tabelaOgloszenBean.ogloszenia}" tableStyle="width:auto">  
				        <p:column headerText="#{msgs.picture}" style="width:100px">  
				            <h:outputText value="a" />  
				        </p:column> 
				  
				        <p:column headerText="#{msgs.title}" style="width:100px">  
				            <h:outputText value="b" /> 
				        </p:column>  
				  
				        <p:column headerText="#{msgs.content}" style="width:300px">  
				            <h:outputText value="c" />  
				        </p:column>  		  
				        <p:column style="width:40px">  
				             <h:panelGrid columns="3" styleClass="actions" cellpadding="2">  
				                 <p:commandButton id="selectButton" icon="ui-icon-search" title="View">  
				                 </p:commandButton>  
				             </h:panelGrid>  
				        </p:column>  
				  
				    </p:dataTable>
				    </p:panel>
				</h:form>  
	        </ui:define>
	    </ui:composition>
	</h:body>
</html>
